package com.ckzp.jfinal.system.route;

import com.ckzp.core.ConfigUtil;
import com.ckzp.jfinal.system.controller.*;
import com.ckzp.jfinal.system.model.SysActivity;
import com.jfinal.config.Routes;

/**
 * Created by 51594 on 2022/7/28.
 */
public class SystemRoutes extends Routes {

    public static String ADMIN_PATH = ConfigUtil.getWebAdminPath();

    public SystemRoutes() {
    }

    public void config() {

        setBaseViewPath("/WEB-INF/resource/pages/system");

        add(ADMIN_PATH + "/index", IndexController.class, "/index/");
        add(ADMIN_PATH + "/login", LoginController.class, "/login/");

        add(ADMIN_PATH + "/sysuser", SysUserController.class, "/sysuser/");
        add(ADMIN_PATH + "/sysrole", SysRoleController.class, "/sysrole/");
        add(ADMIN_PATH + "/systype", SysTypeController.class, "/systype/");
        add(ADMIN_PATH + "/sysdept", SysDeptController.class, "/sysdept/");
        add(ADMIN_PATH + "/syspost", SysPostController.class, "/syspost/");
        add(ADMIN_PATH + "/sysworklog", SysWorkLogController.class, "/sysworklog/");
        add(ADMIN_PATH + "/sysconfig", SysConfigController.class, "/sysconfig/");
        add(ADMIN_PATH + "/sysnotice", SysNoticeController.class, "/sysnotice/");
        add(ADMIN_PATH + "/syspage", SysPageController.class, "/syspage/");
        add(ADMIN_PATH + "/syscode", SysCodeController.class, "/syscode/");
        add(ADMIN_PATH + "/sysfile", SysFileController.class, "/sysfile/");
        add(ADMIN_PATH + "/sysdata", SysDataController.class, "/sysdata/");
        add(ADMIN_PATH + "/sysmenu", SysMenuController.class, "/sysmenu/");
        add(ADMIN_PATH + "/sysonline", SysOnlineController.class, "/sysonline/");
        add(ADMIN_PATH + "/sysinfo", SysInfoController.class, "/sysinfo/");
        add(ADMIN_PATH + "/syscache", SysCacheController.class, "/syscache/");
        add(ADMIN_PATH + "/systask", SysTaskController.class, "/systask/");
        add(ADMIN_PATH + "/sysactivity", SysActivityController.class, "/sysactivity/");
        add(ADMIN_PATH + "/sysapp", SysAppController.class, "/sysapp");
    }
}
